# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-zodbpickle
_pkgname=zodbpickle
pkgver=4.2
pkgrel=1
pkgdesc='A uniform pickling interface for ZODB.'
arch=('any')
url='https://pypi.org/project/zodbpickle/'
license=('ZPL')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2b648f6955c376403c10acbc7ecfc8ecf22e1e028b01b5047fa431ead9a115a0acef55dff392dc9ba6d880abe3b81013fa5fc467ae3f7a5517af72259f91b527')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

